package com.glh.javalogic.chapter5;

import android.view.View;

import com.glh.javalogic.R;
import com.glh.javalogic.chapter5._abstract.AbstractActivity;
import com.glh.javalogic.chapter5._interface.InterfaceActivity;
import com.glh.javalogic.common.BaseActivity;

/**
 * <pre>
 *     author : 高磊华
 *     e-mail : 984992087@qq.com
 *     time   : 2018/06/09
 *     desc   : 第5章 类的拓展
 * </pre>
 */


public class chapter_5Activity extends BaseActivity implements View.OnClickListener {

    @Override
    protected int getContentResourseId() {
        return R.layout.activity_chapter_5;
    }

    @Override
    protected void init() {
        findViewById(R.id.btn1).setOnClickListener(this);
        findViewById(R.id.btn2).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn1:
                JumpToActivity(InterfaceActivity.class);
                break;
            case R.id.btn2:
                JumpToActivity(AbstractActivity.class);
                break;
            default:
                break;
        }
    }
}
